﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <title>我的资产</title>
    <link rel="stylesheet" href="css/style.css?v=1.11">
    <link rel="stylesheet" href="css/index.css?v=1.11">
    <script src="js/jquery-1.8.3.min.js?v=1.11"></script>
    <script src="js/flexible.js?v=1.11"></script>
    <script src="layer-mobile/layer.js?v=1.11"></script>
</head>
	<body>
		<header id="header">
			<div class="back" onclick="closeWin();">
				<img src="image/back.png">
			</div>
			<div class="title">我的资产</div>
		</header>
		<div class="property">
			<div class="pro-list">
				<ul class="pro-item">
                    
				</ul>
			</div>
		</div>
	</body>
</html>
<script type="text/javascript">
    $(function () {
   
        var userid = getUserId(),//获取userid
		    res = '';
	
	    $ajax(
		    url+'getMyAssetsList.ashx',
		    'get',
		    {userid:userid},
		    function(data){
			    var asset = data.data.assetsList;//资产列表
                console.log(asset)
			    if(asset.length > 0){
				    for(var i = 0,iL=asset.length;i<iL;i++){
                        res += '<li><div><span class="pro-name">' + asset[i].currencyCode + '</span> ' +
                            '<p class="pro-num">数量：' + asset[i].totalCredit + '<a href="/mention-money.html" class="pro-tb fr">提取 > </a><a href="/property-list.html?assetid=' + asset[i].id+'" class="pro-cha fr">资产详情</a></p> </div></li>'
				    }
				    $('.pro-item').html(res);
			    }
			
		    },
		    function(data){
			
                loginRes();
		    }
        )
    })
</script>